﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;

namespace Xpom_Xpum__Integrated_Development_Environment.Model
{
    public class ItemTemplate
    {
        public string ItemTemplateNameEN { get; set; }

        public string ItemTemplateNameRU { get; set; }

        public string ItemTemplateName
        {
            get
            {
                if (Thread.CurrentThread.CurrentCulture.Name == "ru-RU")
                {
                    return ItemTemplateNameRU != null ? ItemTemplateNameRU : ItemTemplateNameEN;
                }
                else
                {
                    return ItemTemplateNameEN;
                }
            }
            set
            {
                if (Thread.CurrentThread.CurrentCulture.Name == "ru-RU")
                {
                    if (ItemTemplateNameRU != null)
                        ItemTemplateNameRU = value;
                    else
                        ItemTemplateNameEN = value;
                }
                else
                {
                    ItemTemplateNameEN = value;
                }
            }
        }

        public string ItemTemplateDirectory { get; set; }

        public string ItemTemplateFilesDirectory { get; set; }
    }
}
